package com.ruoyi.product.domain;

import java.math.BigDecimal;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性规格价格对象 p_product_attribute_sku
 * 
 * @author lb
 * @date 2024-01-17
 */
@Data
public class ProductAttributeSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 属性搭配方式 */
    @Excel(name = "属性搭配方式")
    private String attrSymbolPath;

    /** 市场价 */
    @Excel(name = "市场价")
    private BigDecimal originalPrice;

    /** 销售价 */
    @Excel(name = "销售价")
    private BigDecimal sellPrice;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("attrSymbolPath", getAttrSymbolPath())
            .append("originalPrice", getOriginalPrice())
            .append("sellPrice", getSellPrice())
            .toString();
    }
}
